package user;

import org.junit.Test;

@SuppressWarnings({"javadoc", "static-method", "unused"})
public class UserTest {
	private static final String	PASSWORD	= "bla";

	@Test(expected = IllegalArgumentException.class)
	public void testUser1() {
		new User("", PASSWORD);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testUser2() {
		new User("1", PASSWORD);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testUser3() {
		new User("1A", PASSWORD);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testUser4() {
		new User("_", PASSWORD);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testUser5() {
		new User("_A", PASSWORD);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testUser6() {
		new User(" ABC", PASSWORD);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testUser7() {
		new User("A BC", PASSWORD);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testUser8() {
		new User("!A", PASSWORD);
	}

	@Test
	public void testPasses() {
		new User("USER", PASSWORD);
	}

}
